package com.myproject.mall.domain.vo;

import com.myproject.mall.domain.entity.User;
import com.myproject.mall.domain.enums.UserRole;
import lombok.Data;

@Data
public class UserVO {
    private final User user;
    public UserVO(User user) {
        this.user = user;
    }

    public String getId() {
        return user.getId();
    }
    public String getUsername() {
        return user.getUsername();
    }
    public String getPhone() {
        return user.getPhone();
    }
    public String getDescription() {
        return user.getDescription();
    }

    public UserRole getRole() {
        return user.getRole();
    }
    public String getIcon() {
        return user.getIcon();
    }
    public Integer getFans() {
        return user.getFans();
    }
    public String getAddress() {
        return user.getAddress();
    }
}
